import request from '@/request/request.js'; 

/**
 * @description  金币兑换
 */ 
export function exchangePoints(){
	return request({
		url: '/api/cash/exchange',
		headers: {
			isToken: true,
		},
		method: 'post'
	})
}

/**
 * @description  提现申请
 */ 
export function withdrawApply(param){
	return request({
		url: '/api/cash/withdrawApply',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: param
	})
}

/**
 * @description  提现记录
 */ 
export function getWithdrawHistory(){
	return request({
		url: '/api/cash/withdrawHistory',
		headers: {
			isToken: true,
		},
		method: 'get'
	})
}

/**
 * @description  提现记录
 */ 
export function getWithdrawRules(){
	return request({
		url: '/api/cash/withdrawRules',
		headers: {
			isToken: true,
		},
		method: 'get'
	})
}


